home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
biz
/
cloan
/
pio_icon.lha
/
pio_icon
/
LoadOutLineBrush.pprx
next >
Wrap
Text File
|
1997-09-22
|
2KB
|
77 lines
/* Personal Paint Amiga Rexx script */
/* by E.Plischke */
/* $VER: LoadOutlineBrush.pprx 0.0 */
/** ENG
This script loads a brush with a rectangular border.
*/
/** DEU
Dieses Skript lädt einen Pinsel mit rechteckiger Umrahmung.
*/
IF ARG(1, EXISTS) THEN
PARSE ARG PPPORT
ELSE
PPPORT = 'PPAINT'
IF ~SHOW('P', PPPORT) THEN DO
IF EXISTS('PPaint:PPaint') THEN DO
ADDRESS COMMAND 'Run >NIL: PPaint:PPaint'
DO 30 WHILE ~SHOW('P',PPPORT)
ADDRESS COMMAND 'Wait >NIL: 1 SEC'
END
END
ELSE DO
SAY "Personal Paint could not be loaded."
EXIT 10
END
END
IF ~SHOW('P', PPPORT) THEN DO
SAY 'Personal Paint Rexx port could not be opened'
EXIT 10
END
ADDRESS VALUE PPPORT
OPTIONS RESULTS
OPTIONS FAILAT 10000
Get 'LANG'
IF RESULT = 1 THEN DO /* Deutsch */
txt_err_oldclient = 'Für dieses Skript_ist eine neuere Version_von Personal Paint erforderlich'
END
ELSE IF RESULT = 2 THEN DO /* Italiano */
txt_err_oldclient = 'Questa procedura richiede_una versione più recente_di Personal Paint'
END
ELSE DO /* English */
txt_err_oldclient = 'This script requires a newer_version of Personal Paint'
END
Version 'REXX'
rxver = RESULT
IF rxver < 7 THEN DO
RequestNotify 'PROMPT "'txt_err_oldclient'"'
EXIT 10
END
/* I'm no REXX wizard */
LockGUI
Get TRANSP
trans = RESULT
GetPen FOREGROUND
pen = RESULT
Set 'FORCE "TRANSP=0"'
/* use color 1 to avoid depth conflicts between brush and image */
SetPen "FOREGROUND=1"
LoadBrush
/* select one of SIMPLE SQUARE SHADOW 3D TRIM */
OutLineBrush 'SQUARE'
Set 'FORCE "TRANSP='||trans||'"'
SetPen "FOREGROUND="||pen
UnlockGUI